package bean.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import entity.City;
import entity.Country;
import entity.Location;
import entity.Measure;
import entity.Operation;
import entity.Product;
import entity.ProductPicture;
import entity.State;
import entity.Status;

@ManagedBean
@SessionScoped
public class ProductBean implements Serializable {
	private static final long serialVersionUID = 3433594864489381132L;
	
	private Product product;
	private List<String> pictures;
	
	public ProductBean() {
		this.product = new Product();
		this.product.setLocation(new Location());
		this.product.getLocation().setCountry(new Country());
		this.product.getLocation().setState(new State());
		this.product.getLocation().setCity(new City());
		this.product.setMeasure(new Measure());
		this.product.setOperation(new Operation());
		this.product.setStatus(new Status());
		this.product.setProductPictures(new ArrayList<ProductPicture>());
		this.pictures = new ArrayList<String>();
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	
	public List<String> getPictures() {
		return pictures;
	}

	public void setPictures(List<String> pictures) {
		this.pictures = pictures;
	}

	
	
}
